<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
>
<head>
    <meta charset="UTF-8"/>
    <title>这是form</title>
</head>
<body>
<div th:replace="fragments/header :: header"></div>
<!--/*@thymesVar id="userModel" type="com"*/-->
<form action="/users" method="post" th:action="@{/users}" th:object="${userModel.user}">
    <input type="hidden" name="id" th:value="*{id}"/>
    名称: <input type="text" name="name" th:value="*{name}"/>
    <br>
    邮箱:
    <input type="text" name="email" th:value="*{email}"/><br>

    <input type="submit" value="提交"/>
</form>
<div th:replace="fragments/footer :: footer"></div>

</body>
</html>